package mn.idax.exchange.otc.mapper;

import java.util.Date;
import java.util.List;
import mn.idax.exchange.otc.entity.OTCArbitration;
import mn.idax.exchange.otc.entity.OTCArbitrationExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface OTCArbitrationMapper {
    int countByExample(OTCArbitrationExample example);

    int deleteByExample(OTCArbitrationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OTCArbitration record);

    int insertSelective(OTCArbitration record);

    List<OTCArbitration> selectByExampleWithRowbounds(OTCArbitrationExample example, RowBounds rowBounds);

    List<OTCArbitration> selectByExample(OTCArbitrationExample example);

    OTCArbitration selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OTCArbitration record, @Param("example") OTCArbitrationExample example);

    int updateByExample(@Param("record") OTCArbitration record, @Param("example") OTCArbitrationExample example);

    int updateByPrimaryKeySelective(OTCArbitration record);

    int updateByPrimaryKey(OTCArbitration record);
    
    int selectByOrderId(Integer orderid);

    //获取仲裁订单已过36小时的仲裁请求
    List<OTCArbitration> getNeedJiGuangPush(@Param("date") Date date);

    //更新 isjiguangpush 为true
    Integer updateJiGuangPushIsTrue(@Param("id")Integer id);
}